/* 
	Componentes:
		Augusto Acioli
		Daniel Souza
		Luiz Boldrin
		Lucian Sturião
*/

package distribuicoes1;

public class Exponential implements Distribution {
	
	private double lambda;
	
	public Exponential(double lambda) {
		this.lambda = lambda;
	}

	@Override
	public double generate() {
		return -Math.log(1 - Math.random())/lambda;
	}
	
	@Override
	public String toString() {
		return "Exponencial";
	}

	@Override
	public double getTaxa() {
		return lambda;
	}


}
